package com.yix.modules.zrl;

/**
 * @author wdx
 * @version 1.0
 * @Description TODO
 * @date 2021/2/2 15:45
 */
public class HandlerA extends Handler{

    @Override
    public void handleRequest(String request) {
        if(request.equals("one")) {
            System.out.println("具体处理者1负责处理该请求！");
        } else {
            if(getNext()!=null) {
                getNext().handleRequest(request);
            } else {
                System.out.println("没有人处理该请求！");
            }
        }
    }
}
